import axios from '@/api/fetch';
// import * as types from './types';
import SERVER from '@/api/server';


//  分页数据
export const getListByPage = params => axios.post(`${SERVER.DMSCLOUD_ACTIVITY}/ttNonFirstVehicle/getListByPage`,params);

//  模板下载
export const getListForExport = params => {
  return axios({
    url: `${SERVER.DMSCLOUD_ACTIVITY}/ttNonFirstVehicle/getListForExport`,
    method: 'post',
    params: params,
    responseType: 'blob'
  });
};

//  删除
export const deleteById = params => axios.post(`${SERVER.DMSCLOUD_ACTIVITY}/ttNonFirstVehicle/delete`, params);
